<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>async</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
  <script>
    async function findAll(){
      let res = await $.ajax({
        url: 'http://47.94.46.113:7788/user/login',
        method: 'POST',
        data: JSON.stringify({
          username: 'admin1',
          password: '123321'
        }),
        contentType: 'application/json'
      })
      console.log(res);
    }

    findAll(); // async函数调用
  </script>
</head>
<body>
  
</body>
</html>